//
//  NvEditCaptionViewController.h
//  NvSellerShow
//
//  Created by Meicam on 2017/4/5.
//  Copyright © 2017年 Meicam. All rights reserved.
//  字幕贴纸界面

#import <UIKit/UIKit.h>
#import "NvsStreamingContext.h"
#import "NvsVideoTrack.h"
#import "NvMakeFilmClipModel.h"
#import "NvAssetModel.h"
#import "NvAssetManager.h"
#import "NvCapationStyleCell.h"
#import "NvPlaySlider.h"
#import "NvsTimelineCaption.h"
#import "NvsTimelineAnimatedSticker.h"
#import "Utils.h"
@class NvEditCaptionViewController;
@protocol NvEditCaptionDelegate <NSObject>

@optional
- (void)nvEditCaptionViewController:(NvEditCaptionViewController *)controller didFinishSetCaption:(NSString *)caption withCaptionStyleId:(NSString *)captionStyleId captionOffset:(NSString *)captionoffset didFinishSetStickerId:(NSString *)stickerID stickerOffset:(NSString *)stickeroffset captionScale:(CGFloat)captionscale stickerScale:(CGFloat)stickerscale;
@end

@interface NvEditCaptionViewController : UIViewController<UITextFieldDelegate,NvsStreamingContextDelegate,UICollectionViewDataSource, UICollectionViewDelegate>

@property(nonatomic, weak) id<NvEditCaptionDelegate> delegate;

@property (strong, nonatomic) NvMakeFilmClipModel* clipModel;
@property (nonatomic, assign) NvSSVideoCreateScale editMode;
@property (strong, nonatomic) NvsStreamingContext *streamingContext;
@property (strong, nonatomic) NvsTimeline *timeline;
@property (nonatomic, copy)   NSString * themeUuid;



//storyboard property
@property (weak, nonatomic) IBOutlet NvsLiveWindow *liveWindow;
@property (weak, nonatomic) IBOutlet UIButton *playBtn;
@property (weak, nonatomic) IBOutlet UILabel *curLabel;
@property (weak, nonatomic) IBOutlet UILabel *durationLabel;
@property (weak, nonatomic) IBOutlet NvPlaySlider *progressSlider;

@property (weak, nonatomic) IBOutlet UITextField *inputTextField;
@property (weak, nonatomic) IBOutlet UICollectionView *collectionView;
@property (weak, nonatomic) IBOutlet UIView *bottomAreaView;
@property (weak, nonatomic) IBOutlet UIView *modifuCaptionView;



//actions
- (IBAction)playBtnPressed:(id)sender;
- (IBAction)progressSliderValueChanged:(id)sender;
- (IBAction)cancelBtnPressed:(id)sender;
- (IBAction)okBtnPressed:(id)sender;

@end
